package com.zhuang.sms.netty.config;

public class GCmd {


    public enum C2S{
        USER_LOGIN,
        HIT_BALL,
        HIT_BALL_COMPLETE,
        INITIATE_CUE_SYNC;

        public String getDescription() {
            switch(this) {
                case USER_LOGIN:
                    return "user_login";
                case HIT_BALL:
                    return "hit_ball";
                case HIT_BALL_COMPLETE:
                    return "hit_ball_complete";
                case INITIATE_CUE_SYNC:
                    return "initiate_cue_sync";
                default:
                    return null;
            }
        }
    }


    public enum S2C{
        USER_LOGIN_SUCCESS,
        USER_LOGIN_FAIL,
        HIT_BALL_SYNC,
        REQUEST_CUE_SYNC,
        HIT_BALL_COMPLETE_SYNC;

        public String getDescription() {
            switch(this) {
                case USER_LOGIN_SUCCESS:
                    return "user_login_success";
                case USER_LOGIN_FAIL:
                    return "user_login_fail";
                case HIT_BALL_SYNC:
                    return "hit_ball_sync";
                case REQUEST_CUE_SYNC:
                    return "hit_ball_complete_sync";
                case HIT_BALL_COMPLETE_SYNC:
                    return "request_cue_sync";
                default:
                    return null;
            }
        }
    }


}
